package com.ssy.system.controller;

import com.ssy.common.utils.PageResult;
import com.ssy.common.utils.Result;
import com.ssy.system.pojo.Log;
import com.ssy.system.service.ILogService;
import com.ssy.system.vo.LogVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author sunshuaiyong
 * @ClassName LogController
 * @description: TODO
 * @date 2021/11/1 14:30
 */
@RestController
@RequestMapping("/log")
public class LogController {

    @Autowired
    private ILogService logService;

    /**
     * 日志的分页查询
     *
     * @param logVo
     * @return
     */
    @GetMapping("/loadAllLogByPage")
    public PageResult loadAllLogByPage(LogVo logVo) {
        return this.logService.selectLogByPage(logVo);
    }

}
